package com.study.happystudy.service;

import com.study.happystudy.po.UserMistake;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMistakeService {
    // 添加错题
    void addMistake(@Param("userId") int userId, @Param("questionId") int questionId);

    // 根据用户id和题目科目id返回结果
    List<UserMistake> getMistakeByUserIdAndSubjectId(@Param("userId") int userId, @Param("subjectId") int subjectId);

    // 根据用户id返回结果
    List<UserMistake> getMistakesByUserId(@Param("userId") int userId);
}
